package com.googlecode.droidcare.common.provider;

import com.google.inject.Inject;
import com.googlecode.droidcare.common.api.provider.ProviderService;

public class Provider { //TODO prasmingesni pavadinima sugalvot
	
	private ProviderDescriptor providerDescriptor;
	private ProviderService providerService;
	
	public void init() {
		providerService.init(this);
	}
	
	public void update() {
		providerService.update(this);
	}

	public ProviderDescriptor getProviderDescriptor() {
		return providerDescriptor;
	}

	@Inject
	public void setProviderDescriptor(ProviderDescriptor providerDescriptor) {
		this.providerDescriptor = providerDescriptor;
	}

	public ProviderService getProviderService() {
		return providerService;
	}
	
	@Inject
	public void setProviderService(ProviderService providerService) {
		this.providerService = providerService;
	}

}
